package com.example.demo.service;

import com.example.demo.pojo.Room;
import com.example.demo.pojo.User;
import org.springframework.stereotype.Service;

/**
 * @author luolinila
 */
public interface GameService {
    public int createGame();
    public Room getRoom(int id);
    public Room addUser(Room room, User user);
    public Room removeUser(Room room, User user);
    public Room startGame(Room room);
    public Room endGame(Room room);
    public void updateRoomState(Room room);
    public Room action(Room room, User user, String action);
    public void update(Room room);
    public Room stop(Room room);
}
